pkg = com/northwest_man/refactor_tool
cp = ../libs/commons-io-2.8.0.jar:../libs/gson-2.8.5.jar:.
compile:
	cd src && javac -cp ${cp} $(pkg)/Main.java
run:
	cd src && java -cp ${cp} $(pkg)/Main
clean:
	-cd src/com/northwest_man/refactor_tool && rm -r *.class
	-cd src/com/northwest_man/refactor_tool/statistics && rm -r *.class
	-rm -r com

project_root_dir=/Users/zhenghanrong/Projects/AndroidRefactorTools
src_dir=${project_root_dir}/src
lib_dir=${project_root_dir}/libs
_fileName=statistics/StatisticsDeDuplication
_fileName2=Copy
_fileName3=CopyStringInJava

fileName=${src_dir}/${pkg}/${_fileName}
fileName2=${src_dir}/${pkg}/${_fileName2}
fileName3=${src_dir}/${pkg}/${_fileName3}
compile2:
	javac -cp .:${src_dir}:${lib_dir}/commons-io-2.8.0.jar:${lib_dir}/gson-2.8.5.jar ${fileName}.java -d .
	javac -cp .:${src_dir}:${lib_dir}/commons-io-2.8.0.jar:${lib_dir}/gson-2.8.5.jar ${fileName2}.java -d .
	javac -cp .:${src_dir}:${lib_dir}/commons-io-2.8.0.jar:${lib_dir}/gson-2.8.5.jar ${fileName3}.java -d .
run2:
	java -cp .:${lib_dir}/commons-io-2.8.0.jar:${lib_dir}/gson-2.8.5.jar ${_fileName}


go:
	make clean && \
	make compile && \
	make compile2 && \
	make run
